:root {
    --sidebar-width: 200px;
    --sidebar-collapsed-width: 50px;
    --header-height: 60px;
    --primary-color: #42b983;
}

body {
    min-height: 100vh;
    margin: 0;
    background-color: #f8f9fa;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: #2c3e50;
    color: white;
    transition: width 0.3s;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background-color: rgba(0, 0, 0, 0.1);
}

.sidebar-brand {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
}

.menu-toggle {
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    margin-right: 0.8rem;
    width: 1.2rem;
    text-align: center;
    font-size: 1rem;
}

.nav-link span {
    white-space: nowrap;
    overflow: hidden;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(0, 0, 0, 0.1);
}

.submenu.show {
    max-height: 1000px;
}

.submenu .nav-link {
    padding-left: 3rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.submenu .nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    transition: margin-left 0.3s;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

.content-frame {
    width: 100%;
    height: calc(100vh - var(--header-height) - 48px) !important;
    border: none;
}

.collapsed .nav-link span,
.collapsed .sidebar-brand span {
    display: none;
}

.arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.arrow.rotated {
    transform: rotate(180deg);
}

.sidebar.collapsed .nav-item {
    position: relative;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .arrow {
    display: none;
}

.sidebar.collapsed .nav-item:hover .hover-menu {
    display: block;
}

.hover-menu {
    display: none;
    position: absolute;
    left: var(--sidebar-collapsed-width);
    top: 0;
    width: 180px;
    background-color: #2c3e50;
    border-radius: 0 4px 4px 0;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding-bottom: 0.5rem;
}

.hover-menu .nav-link {
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.85rem;
}

.hover-menu .nav-link span {
    display: inline-block !important;
    margin-left: 0.5rem;
}

.hover-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    color: rgba(255, 255, 255, 0.9);
}

.hover-menu .menu-title {
    padding: 0.8rem 1rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.hover-menu .menu-title i {
    margin-right: 0.5rem;
    width: 1.5rem;
    text-align: center;
}

.hover-menu .menu-title span {
    display: inline-block !important;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.breadcrumb-wrapper {
    background-color: #f8f9fa;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.breadcrumb-prefix {
    color: #495057;
    font-weight: 500;
    margin-right: 0.5rem;
    list-style: none;
}

.breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
}